package string;

public class SubstringDemo {
    public static void main(String[] args) {
        //          01234567890
        String str="www.tedu.cn";
        String sub=str.substring(0,3);
        System.out.println(sub);
        sub=str.substring(4);
        System.out.println(sub);

    }
}
